package com.tuomaxu.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "tuomaxu-service-user")
@RequestMapping("/user")
public interface UserServiceFeignClient {

    @GetMapping("/isRegistered/{email}")
    public boolean isRegistered(@PathVariable("email") String email);
}
